// Copyright (c) 2002-2005 Cunningham & Cunningham, Inc.
// Released under the terms of the GNU General Public License version 2 or later.

package com.fit4as.fit
{

public class Counts {

    public var right : int = 0;
    public var wrong : int = 0;
    public var ignores : int = 0;
    public var exceptions : int = 0;

    public function toString() : String {
        return right + " right, " +
               wrong + " wrong, " +
               ignores + " ignored, " +
               exceptions + " exceptions";
    }

    public function tally(source : Counts) : void {
        right += source.right;
        wrong += source.wrong;
        ignores += source.ignores;
        exceptions += source.exceptions;
    }
}
}